<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>收货地址</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-dns-prefetch-control" content="on" />
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/alertMsg.js"></script>
    <!-- 
	<link rel="dns-prefetch" href="http://static.paipaiimg.com" />
     -->
    <link rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/buy.min.css?t=201401202124" />    
</head>
<body>

	<form name="mainform" id="mainform" action="" method="post">
	<div class="addform">
	    	<div class="addform_person">
	      		<div class="addform_item">
		            <span class="addform_tit">收货人</span>
		            <input type="text" id="name" name="editAddress.name" class="addform_input" placeholder="名字" value="{$fullName}" maxlength="20" size="16">
	        	</div>
	        <div class="addform_item">
	            <span class="addform_tit">手机号码</span>
	            <input type="tel" class="addform_input" placeholder="手机号码" id="mobile" name="editAddress.mobile" value="{$phone}">
	        </div>
	    </div>
	    <div class="addform_address">
	        <!-- 
	        <div class="addform_item">
	            <span class="addform_tit">省</span>
	            <select class="addform_select" name="provinceId" data-current="" id="province">
	           		<option value="-1">选择省份</option>
	            </select>
	        </div>
	        <div class="addform_item">
	            <span class="addform_tit">市</span>
	            <select class="addform_select" name="cityId" data-current="" id="city">
	            	<option value="-1">选择城市</option>
	            </select>
	        </div>
	        <div class="addform_item">
	            <span class="addform_tit">区/县</span>
	            <select class="addform_select" name="editAddress.regionId" data-current="0" id="regionId">
	            	<option value="-1">选择区/县</option>
	            </select>
	        </div>
	         -->
	        <div class="addform_item">
	            <span class="addform_tit">详细地址</span>
	            <input type="text" class="addform_input" name="editAddress.address" id="address" placeholder="详细地址" value="{$address}">
	        </div>
	    </div>
	</div>
	<input type="hidden" name="editAddress.addressId" id="aid" value="0">
	<div class="formbtn">
	    <a href="#" id="save_addr" class="btn_sure btn_sure_mini">确认</a>
<!-- 
	    <a href="javascript:history.go(-1);" id="cancel_addr" class="btn_cancle btn_cancle_mini">取消</a>
 -->
	    <a href="javascript:history.go(-1);"  class="btn_cancle btn_cancle_mini">取消</a>
	</div>
	</form>
	<div class="qb_quick_tip qb_none" id="bubble"></div>
	
	<script>
	var hrefParamsArray = GetSessionIdFromHref(window.location.search);
	hrefParamsArray["userName"]='{$userName}';
	function GetSessionIdFromHref(search){
	　　	var args = search.substring(1); 
	　　	var retval = new Array(); 
		args = args.split("&"); 
			for(var i = 0; i < args.length; i ++){ 
				str = args[i]; 
				var arg = str.split("="); 
				if(arg.length <= 1) continue; 
				
				if(arg[0] == 'params') {
					var params = decodeURIComponent(arg[1]);
					var obj = eval('(' + params + ')');
					if (obj.rootid != undefined) {
						retval["rootid"] = obj.rootid;
					}
					if (obj.oid != undefined) {
						retval["oid"] = obj.oid;
					}
				} else if(arg[0] == 'customerId') {
					retval["customerId"] = arg[1]; 
				}else if(arg[0] == 'userName'){
					retval["userName"] = arg[1]; 
				}
			} 
			return retval; 
	}
	
	var hrefPath = 'call.html?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
	var basePath = 'call.json?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
	var rootId = hrefParamsArray["rootid"] == undefined ? '' : ',"rootid":' + hrefParamsArray["rootid"];
	var preOid = hrefParamsArray["oid"];
	</script>
	
	
	<script type="text/javascript" src="wx_assets/js/zepto.min.js"></script>
	<script id="legos:21914" ver="21914:20131231:201401221048" name="PP.wx.buy" src="wx_assets/js/pp.wx.buy.20131231.js?v=20141209" charset="utf-8"></script>
	<!-- 
	<script type="text/javascript" src="http://3glogo.gtimg.com/mobilelife/qqbuy/t/s/assets/areaUtils-min.js?t=20130829"></script>
	 -->
	<script type="text/javascript" src="wx_assets/js/areaUtils-min.js?t=20130829"></script>
	
	<script type="text/javascript">PP.wx.buy.address();</script>
	<script id="legos:21948" ver="21948:20140122:20140218130348" name="PP.wg.mobilereport" src="wx_assets/js/pp.wg.mobilereport.20140122.js?t=20140218130348" charset="gbk"></script>
	<script type="text/javascript">
	  var objMsg = {p:"paipai.com",weixin:1};
	  ECC.cloud.report.pv(objMsg);
	</script>
	<script>window["PP.mobile.ping.time"]=[new Date()]</script>
	<script id="legos:21922" ver="21922:20140103:20140106154115" name="PP.mobile.ping" src="wx_assets/js/pp.mobile.ping.20140103.js?t=20140106154115" charset="gbk"></script>
</body>
</html>